home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
clsres1a
/
frmresiz.frm
< prev
next >
Wrap
Text File
|
1999-09-04
|
3KB
|
111 lines
VERSION 5.00
Object = "{BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0"; "TABCTL32.OCX"
Begin VB.Form frmResizerSample
Caption = "Resizer Sample"
ClientHeight = 1620
ClientLeft = 3075
ClientTop = 1575
ClientWidth = 4035
LinkTopic = "Form1"
ScaleHeight = 1620
ScaleWidth = 4035
Begin TabDlg.SSTab tabResizerSample
Height = 1545
Left = 45
TabIndex = 0
Top = 45
Width = 3960
_ExtentX = 6985
_ExtentY = 2725
_Version = 327681
Style = 1
TabHeight = 520
TabCaption(0) = "Tab 0"
TabPicture(0) = "frmResizerSample.frx":0000
Tab(0).ControlEnabled= -1 'True
Tab(0).Control(0)= "txtResizerSample(0)"
Tab(0).Control(0).Enabled= 0 'False
Tab(0).Control(1)= "tmrChangeTab"
Tab(0).Control(1).Enabled= 0 'False
Tab(0).ControlCount= 2
TabCaption(1) = "Tab 1"
TabPicture(1) = "frmResizerSample.frx":001C
Tab(1).ControlEnabled= 0 'False
Tab(1).Control(0)= "txtResizerSample(1)"
Tab(1).ControlCount= 1
TabCaption(2) = "Tab 2"
TabPicture(2) = "frmResizerSample.frx":0038
Tab(2).ControlEnabled= 0 'False
Tab(2).Control(0)= "txtResizerSample(2)"
Tab(2).ControlCount= 1
Begin VB.Timer tmrChangeTab
Interval = 1000
Left = 1755
Top = 900
End
Begin VB.TextBox txtResizerSample
Height = 285
Index = 1
Left = -74910
TabIndex = 3
Text = "Index Occurrence One."
Top = 765
Width = 3750
End
Begin VB.TextBox txtResizerSample
Height = 285
Index = 2
Left = -74910
TabIndex = 2
Text = "Index Occurrence Two."
Top = 1125
Width = 3750
End
Begin VB.TextBox txtResizerSample
Height = 285
Index = 0
Left = 90
TabIndex = 1
Text = "Index Occurrence Zero."
Top = 405
Width = 3750
End
End
End
Attribute VB_Name = "frmResizerSample"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Resizer As clsResize
Private Sub Form_Load()
Set Resizer = New clsResize
Resizer.SourceForm = Me
Resizer.SizeFormToScreen 75
End Sub
Private Sub Form_Resize()
Resizer.ResizeControls
End Sub
Private Sub Form_Unload(Cancel As Integer)
Set Resizer = Nothing
End Sub
Private Sub tmrChangeTab_Timer()
Static CurrentTab As Long
CurrentTab = tabResizerSample.Tab
If ((CurrentTab + 1) = tabResizerSample.Tabs) Then
CurrentTab = 0
Else
CurrentTab = CurrentTab + 1
End If
tabResizerSample.Tab = CurrentTab
End Sub